﻿<Window x:Class="VMMove.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Hyper-V Virtual Machine Attach Tool - Tool by Jerome Laban (http://www.jaylee.org)" Height="519" Width="765">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="276*" />
            <RowDefinition Height="32" />
            <RowDefinition Height="112*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="48*" />
        </Grid.ColumnDefinitions>
        <ListBox Margin="12,12,12,14" Name="machinesListBox" ItemsSource="{Binding Path=Machines}" SelectionChanged="machinesListBox_SelectionChanged" Grid.ColumnSpan="2">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Name}" />
                        <TextBlock Text=" ("/>
                        <TextBlock Text="{Binding State}" />
                        <TextBlock Text=")"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button HorizontalAlignment="Left" Margin="12,0,0,9" Name="unlinkButton" Width="110" Click="unlinkButton_Click" IsEnabled="{Binding Path=CanUnlinkCurrent}" Grid.ColumnSpan="2" Grid.Row="1">Detach VM</Button>
        <Button Margin="128,0,0,9" Name="linkButton" Click="linkButton_Click" HorizontalAlignment="Left" Width="110" Grid.Row="1">Attach Existing VM</Button>
        <TextBox Grid.Row="2" Margin="12,9,12,12" Name="messagesBox" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" />
        <Button HorizontalAlignment="Left" Margin="244,0,0,9" Name="buttonRefresh" Width="110" Grid.Row="1" Click="buttonRefresh_Click">Refresh List</Button>
    </Grid>
</Window>
